//
//  assert.cpp
//  learnC++
//
//  Created by apple on 2018/6/1.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "assert.hpp"



void test_assert(){
    int value = 1;
    assert(!value && "Car could not be found in database");//条件为真不执行
    
    //编译时执行的assert
    static_assert(sizeof(long) == 8, "long must be 8 bytes");
    
    printf("KKKK\n");
}
